package com.ruoyi.index.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 热点对象 fh_index_hot
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
public class FhIndexHot extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 发布信息id */
    @Excel(name = "发布信息id")
    private Long postinfoId;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long likeNum;

    /** 热点词 */
    @Excel(name = "热点词")
    private String hotWords;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date crateTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPostinfoId(Long postinfoId) 
    {
        this.postinfoId = postinfoId;
    }

    public Long getPostinfoId() 
    {
        return postinfoId;
    }
    public void setLikeNum(Long likeNum) 
    {
        this.likeNum = likeNum;
    }

    public Long getLikeNum() 
    {
        return likeNum;
    }
    public void setHotWords(String hotWords) 
    {
        this.hotWords = hotWords;
    }

    public String getHotWords() 
    {
        return hotWords;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCrateTime(Date crateTime) 
    {
        this.crateTime = crateTime;
    }

    public Date getCrateTime() 
    {
        return crateTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("postinfoId", getPostinfoId())
            .append("likeNum", getLikeNum())
            .append("hotWords", getHotWords())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("crateTime", getCrateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
